<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加班级</title>
    {% load static %}
    <link rel="stylesheet" href="{% static 'css/add.css' %}">
</head>
<body>
<h4>添加班级信息</h4>
<form action="{% url 'classmate:add_class' %}" method="post">
    {% csrf_token %}
    <p>班级名称：<input type="text" name="name" id="name" required></p>
    <p>创建时间：<input type="datetime-local" name="pub_date" id="pub_date" required></p>
    <input type="submit" value="提交" class="btn">
    <a href="{% url 'classmate:index' %}" class="btn">返回</a>
</form>
</body>
</html>